@extends('layouts.main')

@section('title', '显示开票信息')

@section('content')
<h3>@yield('title')</h3>
<div class="btn-group" role="group">
  <a href="{{ action('BusinessData\InvoiceDetailsController@index') }}" class="btn btn-primary">返回列表</a>
</div>

<form class="form-horizontal">
    <div class="form-group">
		<label for="year" class="col-sm-2 control-label">年份</label>
		<div class="col-sm-6">
			<select class="form-control" id="year" name="year" disabled>
			<option value="{{ $model->year }}">{{ $model->year }}</option>
			</select>
		</div>
    </div>

	<div class="form-group">
		<label for="month" class="col-sm-2 control-label">月份</label>
		<div class="col-sm-6">
			<select class="form-control" id="month" name="month" disabled>
				<option value="{{ $model->month }}">{{ $model->month }}</option>
			</select>
		</div>
    </div>

    <div class="form-group">
		<label for="sales_order_no" class="col-sm-2 control-label">销售订单号</label>
		<div class="col-sm-3">
			<input class="form-control" id="sales_order_no" name="sales_order_no" value="{{ $model->sales_order_no }}" disabled>
		</div>
    </div>

	<div class="form-group">
		<label for="sales_order_line_no" class="col-sm-2 control-label">销售订单行号</label>
		<div class="col-sm-3">
			<input class="form-control" id="sales_order_line_no" name="sales_order_line_no" value="{{ $model->sales_order_line_no }}" disabled>
		</div>
    </div>

    <div class="form-group">
		<label for="material" class="col-sm-2 control-label">物料编码</label>
		<div class="col-sm-3">
			<input class="form-control" id="material" name="material" value="{{ $model->material }}" disabled>
		</div>
    </div>

	<div class="form-group">
		<label for="quantity" class="col-sm-2 control-label">开票数量</label>
		<div class="col-sm-3">
		  <input class="form-control" id="quantity" name="quantity" value="{{ $model->quantity }}" disabled>
		</div>
	</div>

	<div class="form-group">
		<label for="total_price_tax_discount" class="col-sm-2 control-label">开票总价(含税)(折扣前)</label>
		<div class="col-sm-3">
		  <input class="form-control" id="total_price_tax_discount" name="total_price_tax_discount" value="{{ $model->total_price_tax_discount }}" disabled>
		</div>
	</div>

	<div class="form-group">
		<label for="total_price_tax" class="col-sm-2 control-label">开票总价(含税)</label>
		<div class="col-sm-3">
		  <input class="form-control" id="total_price_tax" name="total_price_tax" value="{{ $model->total_price_tax }}" disabled>
		</div>
	</div>

	<div class="form-group">
		<label for="total_price_no_tax" class="col-sm-2 control-label">开票总价(不含税)</label>
		<div class="col-sm-3">
		  <input class="form-control" id="total_price_no_tax" name="total_price_no_tax" value="{{ $model->total_price_no_tax }}" disabled>
		</div>
	</div>

	<div class="form-group">
		<label for="tax" class="col-sm-2 control-label">税额</label>
		<div class="col-sm-3">
		  <input class="form-control" id="tax" name="total_price_no_tax" value="{{ $model->tax }}" disabled>
		</div>
	</div>

	<div class="form-group">
		<label for="discount" class="col-sm-2 control-label">折扣金额</label>
		<div class="col-sm-3">
		  <input class="form-control" id="discount" name="discount" value="{{ $model->discount }}" disabled>
		</div>
	</div>

	<div class="form-group">
		<label for="surcharge" class="col-sm-2 control-label">附加费</label>
		<div class="col-sm-3">
		  <input class="form-control" id="surcharge" name="surcharge" value="{{ $model->surcharge }}" disabled>
		</div>
	</div>

	<div class="form-group">
		<label for="sales_order_type_code" class="col-sm-2 control-label">销售订单类型</label>
		<div class="col-sm-6">
			<select class="form-control" id="sales_order_type_code" name="sales_order_type_code" disabled>
				<option value="{{ $model->sales_order_type->code }}" >{{ $model->sales_order_type->code.' --- '.$model->sales_order_type->code_desc }}</option>
			</select>
		</div>
    </div>

	<div class="form-group">
		<label for="project_type_code" class="col-sm-2 control-label">项目类型</label>
		<div class="col-sm-6">
			<select class="form-control" id="project_type_code" name="project_type_code" disabled>
				<option value="{{ $model->project_type->code }}">{{ $model->project_type->code.' --- '.$model->project_type->code_desc }}</option>
			</select>
		</div>
    </div>

	<div class="form-group">
		<label for="sales_organization_code" class="col-sm-2 control-label">销售组织</label>
		<div class="col-sm-6">
			<select class="form-control" id="sales_organization_code" name="sales_organization_code" disabled>
				<option value="{{ $model->sales_organization->code }}">{{ $model->sales_organization->code.' --- '.$model->sales_organization->code_desc }}</option>
			</select>
		</div>
    </div>

	<div class="form-group">
		<label for="sales_region_code" class="col-sm-2 control-label">销售大区</label>
		<div class="col-sm-6">
			<select class="form-control" id="sales_region_code" name="sales_region_code" disabled>
				<option value="{{ $model->sales_region->code }}">{{ $model->sales_region->code.' --- '.$model->sales_region->code_desc }}</option>
			</select>
		</div>
    </div>

	<div class="form-group">
		<label for="sales_office_code" class="col-sm-2 control-label">销售办事处</label>
		<div class="col-sm-6">
			<select class="form-control" id="sales_office_code" name="sales_office_code" disabled>
				<option value="{{ $model->sales_office->code }}">{{ $model->sales_office->code.' --- '.$model->sales_office->code_desc }}</option>
			</select>
		</div>
    </div>

	<div class="form-group">
		<label for="distribution_channel_code" class="col-sm-2 control-label">分销渠道</label>
		<div class="col-sm-6">
			<select class="form-control" id="distribution_channel_code" name="distribution_channel_code" disabled>
				<option value="{{ $model->distribution_channel->code }}">{{ $model->distribution_channel->code.' --- '.$model->distribution_channel->code_desc }}</option>
			</select>
		</div>
    </div>

	<div class="form-group">
		<label for="payer_id" class="col-sm-2 control-label">付款方</label>
		<div class="col-sm-3">
			<input class="form-control" id="payer_id" name="payer_id" value="{{ $model->payer_id.' --- '.$model->payer->name }}" disabled>
		</div>
    </div>

	<div class="form-group">
		<label for="salesman_id" class="col-sm-2 control-label">业务员</label>
		<div class="col-sm-3">
			<input class="form-control" id="salesman_id" name="salesman_id" value="{{ $model->salesman_id.' --- '. $model->salesman->name }}" disabled>
		</div>
    </div>

    <div class="form-group">
		<div class="col-sm-offset-2 col-sm-10">
			<a href="{{ action('BusinessData\InvoiceDetailsController@edit', $model) }}" class="btn btn-primary">编辑</a>
		</div>
    </div>
</form>

@endsection